//
//  THBottomPushView.h
//  BusinessCloud
//
//  Created by xin on 2019/1/15.
//  Copyright © 2019 天九网络科技. All rights reserved.
//  底部push基础类

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface THBottomPushView : UIView

@property (nonatomic,assign) CGFloat contentHeight;

@property (nonatomic, strong) UIViewController *currentVC;
/** 背景截图 模糊效果 */
@property (nonatomic,strong) UIVisualEffectView *backgroundView;
/** 内容阴影 */
@property (nonatomic,strong) UIView *shadowView;
/** 内容 */
@property (nonatomic,strong) UIView *contentView;
/** 标题 */
@property (nonatomic,strong) NSString * title;
/** 右标题 */
@property (nonatomic,strong) NSString *rightTitle;
/** 标题label */
@property (nonatomic,strong) UILabel *titleLabel;
/** 关闭按钮 */
@property (nonatomic,strong) UIButton *closeButton;
/** 确定按钮 */
@property (nonatomic,strong) UIButton *doneButton;
/** 右按钮点击事件 */
@property (nonatomic, copy) void(^rightButtonClickedBlock)(UIButton *sender);

- (void)show;

- (void)showInView:(UIView *)view;

- (void)dismiss;
#pragma mark - 子类实现下面方法
/**ViewController Show*/
- (instancetype)initWithCurrentVC:(UIViewController *)currentVC;

/** 初始化子类，需要addSubView到contentView     window Show
 */
- (void)initSubViews;
/** doneButton按钮事件 */
- (void)doneAction:(id)sender;
/**doneButton按钮事件的前一个方法*/
- (void)sendAction:(id)sender;
@end

NS_ASSUME_NONNULL_END
